package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.UserPoints;
import com.nbsaas.boot.marketing.api.domain.response.UserPointsResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 用户积分-实体对象转化成响应对象
*/

public class UserPointsResponseConvert  implements Converter<UserPointsResponse,UserPoints> {

    @Override
    public UserPointsResponse convert(UserPoints source) {
        UserPointsResponse  result = new  UserPointsResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

